package com.dingding.order.core.confirm.dao.impl;

import javax.annotation.Resource;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Component;

import com.dingding.common.core.base.daox.ICriteriaBaseDao;
import com.dingding.common.core.base.daox.ISQLBaseDao;
import com.dingding.common.core.beans.UserTaxiOrdert;
import com.dingding.order.core.confirm.dao.ITaxiConfirmArriveOrderDao;

/**
 * 
 * @ClassName: TaxiConfirmArriveOrderDaoImpl 
 * @Description: 出租车确认到达DAO实现类 
 * @author YHQ
 * @date 2016年7月1日 上午9:54:37
 * @version V2.3.0
 * 
 */
@Component("taxiConfirmArriveOrder")
public class TaxiConfirmArriveOrderDaoImpl implements ITaxiConfirmArriveOrderDao {

	@Resource(name = "SQLBaseDao")
	private ISQLBaseDao sqlBaseDao;
	
	@Resource(name="criteriaBaseDao")
	private ICriteriaBaseDao criteriaBaseDao;

	@Override
	public UserTaxiOrdert getUserTaxiOrdertInfoById(String oid) {
		Criterion criterion = Restrictions.eq("taxiOrdertId", oid);
		return criteriaBaseDao.queryCriteriaListUnique(UserTaxiOrdert.class, criterion);
	}
	
}
